package Entitys;

import java.util.List;
import javax.persistence.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrador
 */
@Entity
public class SoundTrack {
    @Id
    private int id;
    private String picture;
    @OneToMany(mappedBy = "soundTrack")
    private List<Sound> sounds;
    @OneToOne
    @JoinColumn(name="MOVIE_ID")
    private Movie movie;
    public SoundTrack(){}

    /**
     * @return the picture
     */
    public String getPicture() {
        return picture;
    }

    /**
     * @param picture the picture to set
     */
    public void setPicture(String picture) {
        this.picture = picture;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the sounds
     */
    public List<Sound> getSounds() {
        return sounds;
    }

    /**
     * @param sounds the sounds to set
     */
    public void setSounds(List<Sound> sounds) {
        this.sounds = sounds;
    }

    /**
     * @return the movie
     */
    public Movie getMovie() {
        return movie;
    }

    /**
     * @param movie the movie to set
     */
    public void setMovie(Movie movie) {
        this.movie = movie;
    }
}
